how to use query selector all in js